package com.ruoyi.mes.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户管理对象 sle_customer_info
 *
 * @author CFL
 * @date 2024-05-19
 */
public class SleCustomerInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户id */
    private Long id;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String sn;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String name;

    /** 客户等级;0：A；1：B；2：C；3：D */
    @Excel(name = "客户等级;0：A；1：B；2：C；3：D")
    private Integer grade;

    /** 客户状态;0：正常；1：停用 */
    @Excel(name = "客户状态;0：正常；1：停用")
    private Integer state;

    /** 逻辑删除;0：存在；1：删除 */
    @Excel(name = "逻辑删除;0：存在；1：删除")
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;


    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 联系人号码 */
    @Excel(name = "联系人号码")
    private Long contactNumber;

    /** 联系人地址 */
    @Excel(name = "联系人地址")
    private String address;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setGrade(Integer grade)
    {
        this.grade = grade;
    }

    public Integer getGrade()
    {
        return grade;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted()
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate)
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate()
    {
        return updatedDate;
    }
    public void setContactNumber(Long contactNumber)
    {
        this.contactNumber = contactNumber;
    }
    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public Long getContactNumber()
    {
        return contactNumber;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sn", getSn())
                .append("name", getName())
                .append("grade", getGrade())
                .append("state", getState())
                .append("isDeleted", getIsDeleted())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedDate", getUpdatedDate())
                .append("remark", getRemark())
                .append("contact",getContact())
                .append("contactNumber", getContactNumber())
                .append("address", getAddress())
                .toString();
    }
}
